package model;

import java.util.ArrayList;

public class Fourmiliere {

	private ArrayList<Fourmi> nosFourmis = new ArrayList<Fourmi>();
	private int x;
	private int y;
	private int taille;
	Fourmi fourmiReine;
	
	public Fourmiliere(int x, int y, int taille) {
		this.x=x;
		this.y=y;
		this.taille=taille;
		this.fourmiReine = new Fourmi(new Reine(this));
		nosFourmis.add(fourmiReine);
	}


	public ArrayList<Fourmi> getNosFourmis() {
		return nosFourmis;
	}

	public void addFourmi(Fourmi laFourmi){
		nosFourmis.add(laFourmi);
		
	}
	
	public void removeFourmi(Fourmi laFourmi){
		nosFourmis.remove(laFourmi);
		if (laFourmi.equals(fourmiReine)) fourmiReine=null;
	}


	public int getX() {
		return x;
	}


	public void setX(int x) {
		this.x = x;
	}


	public int getY() {
		return y;
	}


	public void setY(int y) {
		this.y = y;
	}


	public int getTaille() {
		return taille;
	}


	public void setTaille(int taille) {
		this.taille = taille;
	}


	public void setNosFourmis(ArrayList<Fourmi> nosFourmis) {
		this.nosFourmis = nosFourmis;
	}

}
